package com.ejuornal.dao;

import java.util.List;

import com.ejuornal.bean.Permission;
import com.ejuornal.bean.RolePermission;
import com.ejuornal.bean.vo.PermissionVO;

/**
 * 功能Dao
 * @author Liang
 * 2013-1-26
 */
public interface PermissionDao extends BaseDao<Permission>{
    public boolean delete(int id);
    public boolean batchUpdate();
    public List<Permission> findByRoleId(int roleId);
    public List<Permission> findByNotIntRole(int roleId);
    public boolean addRolePermission(RolePermission rp);
    public List<Permission> findByPgId(int pgid, int roleId);
}
